import sys
import pyautogui
import time
from  myMethods import  click,find
import  myMethods
myMethods.setSrc(sys.argv[0].replace("liao30 2 .py","img/"))

click("explore")
click("yuhun")
click("snake")
click("troop")
click("createTeam")
click("private")
click("creat")
click("invite")
click("chengge")
click("invite2")
click("other",sim=0.98)
time.sleep(1)
click("accept")
click("benefit")
click("yuhunjiacheng",flag=541)
pyautogui.move(100,100)
pyautogui.click()
click("other",sim=0.98)
time.sleep(1)
click("benefit")
click("yuhunjiacheng",flag=541)
pyautogui.move(100,100)
pyautogui.click()
click("tiaozhan")
find("shengli")
click("shengli")
time.sleep(1)
click("trophy")
click("defaultInvite")
click("yes")
click("other",sim=0.98)
click("shengli",timeout=2)
time.sleep(1)
click("trophy")
click("defaultAccept")
click("other",sim=0.98)
loop =29
while loop>0:
    click("tiaozhan")
    find("shengli")
    click("shengli")
    time.sleep(2)
    click("trophy")
    click("other", sim=0.98)
    click("shengli")
    time.sleep(2)
    click("trophy")

    click("other", sim=0.98)
    loop-=1
    print(loop)

click("denglong1",sim=0.7)
click("yuhunjiacheng",flag=541)
pyautogui.move(100,0)
pyautogui.click()
click("other", sim=0.98)
click("denglong1",sim=0.7)
click("yuhunjiacheng",flag=541)
pyautogui.move(100,0)
pyautogui.click()


